<?php
	function rands(){
		$ran = rand(1,1000);
		if($ran<=600){
			$result = 245;
		}else if($ran>600&&$ran<=750){
			$result = 200;
		}else if($ran>750&&$ran<=850){
			$n = rend(1,2);
			switch($n){
				case 1:
					$result = 155;
					break;
				case 2;
					$result =335;
					break;
			}
			$result = 155;
		}else if($ran>850&&$ran<=900){
			$result = 110;
		}else if($ran>900&&$ran<=960){
			$result = 65;
		}else if($ran>960&&$ran<=999){
			$result = 20;
		}else if($ran>999&&$ran<=1000){
			$result = 290;
		}
		echo $result;
	}
	
	rands();
	
	
	
	
?>